[SUBROUTINE]
version = 1.14
icon = radial-slot.png
name = _("Radial Slot")
type = slot-arc
help = _("<b>Creates a Radial Slot</b>&#10;Define center, start and extend angle")
order = act pv h1 cx cy h4 w r h3 strt ext es h2 opt dir

[PARAM_ACT]
name = _("Active")
icon = enable.png
type = bool
value = 1

[PARAM_PV]
name = _("Show design")
icon = glasses.png
type = bool
value = 1

[PARAM_H1]
name = _("Coords")
type = sub-header

[PARAM_H4]
name = _("Size")
type = sub-header

[PARAM_H3]
name = _("Start, extend")
type = sub-header

[PARAM_CX]
name = _("cX")
type = float
icon = center.png
tool_tip = _("Center of slot arc")
value = 0
metric_value = 0.0
header = h1

[PARAM_CY]
name = _("cY")
type = float
icon = center.png
tool_tip = _("Center of slot arc")
value = 0
metric_value = 0.0
header = h1

[PARAM_ES]
name = _("Ends style")
type = combo
options = _("Round=0:Converging=1")
value = 0
header = h4
icon = arc-end-opt.png

[PARAM_R]
name = _("Radius")
type = float
minimum_value = 0.0
icon = r.png
tool_tip = _("Distance from center")
value = 1.5
header = h4
metric_value = 40
not_allowed = 0

[PARAM_STRT]
name = _("Start angle")
type = float
digits = 2
icon = angle.png
tool_tip = _("Absolute angle")
value = 10
header = h3
suffix = &#176;

[PARAM_EXT]
name = _("Extend angle")
type = float
digits = 2
icon = ext-angle.png
tool_tip = _("Relative length of arc in degrees")
value = 45
header = h3
suffix = &#176;

[PARAM_W]
name = _("Width")
type = float
icon = oval-d.png
tool_tip = _("Width of slot")
value = 0.375
header = h4
metric_value = 8
minimum_value = 0.0
not_allowed = 0

[PARAM_H2]
name = _("Cutting")
type = sub-header

[PARAM_OPT]
name = _("Option")
type = combo
options = _("Inside=0:On the line=2:Outside=3")
icon = g4x.png
tool_tip = _("Select tool path")
value = 0
header = h2

[PARAM_DIR]
name = _("Direction")
type = combo
options = _("Clockwise=2:Counter-Clockwise=3")
icon = cw-ccw.png
tool_tip = _("Direction of path")
value = 3
header = h2

[DEFINITIONS]
content =
;	<eval>self.include_once(file name here)</eval>

[CALL]
content =
	(begin #sub_name)
	(radial slot author : Fernand Veilleux)
	o<#self_id_active> if [#param_act] (if active)
		o<slot_arc> CALL [#param_cx] [#param_cy] [#param_r] [#param_w] [#param_strt] [#param_ext] [#param_opt] [#param_dir] [#<pl_cut_start>] [#<surface>] [#<bottom>] [#param_pv] [#param_es]
	o<#self_id_active> endif
